package cn.com.allunion.sms.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SmsoperatorExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SmsoperatorExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSmsOperatorIDIsNull() {
            addCriterion("smsOperatorID is null");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorIDIsNotNull() {
            addCriterion("smsOperatorID is not null");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorIDEqualTo(String value) {
            addCriterion("smsOperatorID =", value, "smsOperatorID");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorIDNotEqualTo(String value) {
            addCriterion("smsOperatorID <>", value, "smsOperatorID");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorIDGreaterThan(String value) {
            addCriterion("smsOperatorID >", value, "smsOperatorID");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorIDGreaterThanOrEqualTo(String value) {
            addCriterion("smsOperatorID >=", value, "smsOperatorID");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorIDLessThan(String value) {
            addCriterion("smsOperatorID <", value, "smsOperatorID");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorIDLessThanOrEqualTo(String value) {
            addCriterion("smsOperatorID <=", value, "smsOperatorID");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorIDLike(String value) {
            addCriterion("smsOperatorID like", value, "smsOperatorID");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorIDNotLike(String value) {
            addCriterion("smsOperatorID not like", value, "smsOperatorID");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorIDIn(List<String> values) {
            addCriterion("smsOperatorID in", values, "smsOperatorID");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorIDNotIn(List<String> values) {
            addCriterion("smsOperatorID not in", values, "smsOperatorID");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorIDBetween(String value1, String value2) {
            addCriterion("smsOperatorID between", value1, value2, "smsOperatorID");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorIDNotBetween(String value1, String value2) {
            addCriterion("smsOperatorID not between", value1, value2, "smsOperatorID");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNull() {
            addCriterion("createDate is null");
            return (Criteria) this;
        }

        public Criteria andCreateDateIsNotNull() {
            addCriterion("createDate is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDateEqualTo(Date value) {
            addCriterion("createDate =", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotEqualTo(Date value) {
            addCriterion("createDate <>", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThan(Date value) {
            addCriterion("createDate >", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("createDate >=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThan(Date value) {
            addCriterion("createDate <", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("createDate <=", value, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateIn(List<Date> values) {
            addCriterion("createDate in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotIn(List<Date> values) {
            addCriterion("createDate not in", values, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("createDate between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("createDate not between", value1, value2, "createDate");
            return (Criteria) this;
        }

        public Criteria andJoinNumIsNull() {
            addCriterion("joinNum is null");
            return (Criteria) this;
        }

        public Criteria andJoinNumIsNotNull() {
            addCriterion("joinNum is not null");
            return (Criteria) this;
        }

        public Criteria andJoinNumEqualTo(String value) {
            addCriterion("joinNum =", value, "joinNum");
            return (Criteria) this;
        }

        public Criteria andJoinNumNotEqualTo(String value) {
            addCriterion("joinNum <>", value, "joinNum");
            return (Criteria) this;
        }

        public Criteria andJoinNumGreaterThan(String value) {
            addCriterion("joinNum >", value, "joinNum");
            return (Criteria) this;
        }

        public Criteria andJoinNumGreaterThanOrEqualTo(String value) {
            addCriterion("joinNum >=", value, "joinNum");
            return (Criteria) this;
        }

        public Criteria andJoinNumLessThan(String value) {
            addCriterion("joinNum <", value, "joinNum");
            return (Criteria) this;
        }

        public Criteria andJoinNumLessThanOrEqualTo(String value) {
            addCriterion("joinNum <=", value, "joinNum");
            return (Criteria) this;
        }

        public Criteria andJoinNumLike(String value) {
            addCriterion("joinNum like", value, "joinNum");
            return (Criteria) this;
        }

        public Criteria andJoinNumNotLike(String value) {
            addCriterion("joinNum not like", value, "joinNum");
            return (Criteria) this;
        }

        public Criteria andJoinNumIn(List<String> values) {
            addCriterion("joinNum in", values, "joinNum");
            return (Criteria) this;
        }

        public Criteria andJoinNumNotIn(List<String> values) {
            addCriterion("joinNum not in", values, "joinNum");
            return (Criteria) this;
        }

        public Criteria andJoinNumBetween(String value1, String value2) {
            addCriterion("joinNum between", value1, value2, "joinNum");
            return (Criteria) this;
        }

        public Criteria andJoinNumNotBetween(String value1, String value2) {
            addCriterion("joinNum not between", value1, value2, "joinNum");
            return (Criteria) this;
        }

        public Criteria andJoinStateIsNull() {
            addCriterion("joinState is null");
            return (Criteria) this;
        }

        public Criteria andJoinStateIsNotNull() {
            addCriterion("joinState is not null");
            return (Criteria) this;
        }

        public Criteria andJoinStateEqualTo(String value) {
            addCriterion("joinState =", value, "joinState");
            return (Criteria) this;
        }

        public Criteria andJoinStateNotEqualTo(String value) {
            addCriterion("joinState <>", value, "joinState");
            return (Criteria) this;
        }

        public Criteria andJoinStateGreaterThan(String value) {
            addCriterion("joinState >", value, "joinState");
            return (Criteria) this;
        }

        public Criteria andJoinStateGreaterThanOrEqualTo(String value) {
            addCriterion("joinState >=", value, "joinState");
            return (Criteria) this;
        }

        public Criteria andJoinStateLessThan(String value) {
            addCriterion("joinState <", value, "joinState");
            return (Criteria) this;
        }

        public Criteria andJoinStateLessThanOrEqualTo(String value) {
            addCriterion("joinState <=", value, "joinState");
            return (Criteria) this;
        }

        public Criteria andJoinStateLike(String value) {
            addCriterion("joinState like", value, "joinState");
            return (Criteria) this;
        }

        public Criteria andJoinStateNotLike(String value) {
            addCriterion("joinState not like", value, "joinState");
            return (Criteria) this;
        }

        public Criteria andJoinStateIn(List<String> values) {
            addCriterion("joinState in", values, "joinState");
            return (Criteria) this;
        }

        public Criteria andJoinStateNotIn(List<String> values) {
            addCriterion("joinState not in", values, "joinState");
            return (Criteria) this;
        }

        public Criteria andJoinStateBetween(String value1, String value2) {
            addCriterion("joinState between", value1, value2, "joinState");
            return (Criteria) this;
        }

        public Criteria andJoinStateNotBetween(String value1, String value2) {
            addCriterion("joinState not between", value1, value2, "joinState");
            return (Criteria) this;
        }

        public Criteria andPriorityIsNull() {
            addCriterion("priority is null");
            return (Criteria) this;
        }

        public Criteria andPriorityIsNotNull() {
            addCriterion("priority is not null");
            return (Criteria) this;
        }

        public Criteria andPriorityEqualTo(Integer value) {
            addCriterion("priority =", value, "priority");
            return (Criteria) this;
        }

        public Criteria andPriorityNotEqualTo(Integer value) {
            addCriterion("priority <>", value, "priority");
            return (Criteria) this;
        }

        public Criteria andPriorityGreaterThan(Integer value) {
            addCriterion("priority >", value, "priority");
            return (Criteria) this;
        }

        public Criteria andPriorityGreaterThanOrEqualTo(Integer value) {
            addCriterion("priority >=", value, "priority");
            return (Criteria) this;
        }

        public Criteria andPriorityLessThan(Integer value) {
            addCriterion("priority <", value, "priority");
            return (Criteria) this;
        }

        public Criteria andPriorityLessThanOrEqualTo(Integer value) {
            addCriterion("priority <=", value, "priority");
            return (Criteria) this;
        }

        public Criteria andPriorityIn(List<Integer> values) {
            addCriterion("priority in", values, "priority");
            return (Criteria) this;
        }

        public Criteria andPriorityNotIn(List<Integer> values) {
            addCriterion("priority not in", values, "priority");
            return (Criteria) this;
        }

        public Criteria andPriorityBetween(Integer value1, Integer value2) {
            addCriterion("priority between", value1, value2, "priority");
            return (Criteria) this;
        }

        public Criteria andPriorityNotBetween(Integer value1, Integer value2) {
            addCriterion("priority not between", value1, value2, "priority");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorNameIsNull() {
            addCriterion("smsOperatorName is null");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorNameIsNotNull() {
            addCriterion("smsOperatorName is not null");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorNameEqualTo(String value) {
            addCriterion("smsOperatorName =", value, "smsOperatorName");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorNameNotEqualTo(String value) {
            addCriterion("smsOperatorName <>", value, "smsOperatorName");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorNameGreaterThan(String value) {
            addCriterion("smsOperatorName >", value, "smsOperatorName");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorNameGreaterThanOrEqualTo(String value) {
            addCriterion("smsOperatorName >=", value, "smsOperatorName");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorNameLessThan(String value) {
            addCriterion("smsOperatorName <", value, "smsOperatorName");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorNameLessThanOrEqualTo(String value) {
            addCriterion("smsOperatorName <=", value, "smsOperatorName");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorNameLike(String value) {
            addCriterion("smsOperatorName like", value, "smsOperatorName");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorNameNotLike(String value) {
            addCriterion("smsOperatorName not like", value, "smsOperatorName");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorNameIn(List<String> values) {
            addCriterion("smsOperatorName in", values, "smsOperatorName");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorNameNotIn(List<String> values) {
            addCriterion("smsOperatorName not in", values, "smsOperatorName");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorNameBetween(String value1, String value2) {
            addCriterion("smsOperatorName between", value1, value2, "smsOperatorName");
            return (Criteria) this;
        }

        public Criteria andSmsOperatorNameNotBetween(String value1, String value2) {
            addCriterion("smsOperatorName not between", value1, value2, "smsOperatorName");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIsNull() {
            addCriterion("updateDate is null");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIsNotNull() {
            addCriterion("updateDate is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateDateEqualTo(Date value) {
            addCriterion("updateDate =", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotEqualTo(Date value) {
            addCriterion("updateDate <>", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateGreaterThan(Date value) {
            addCriterion("updateDate >", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("updateDate >=", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateLessThan(Date value) {
            addCriterion("updateDate <", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateLessThanOrEqualTo(Date value) {
            addCriterion("updateDate <=", value, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateIn(List<Date> values) {
            addCriterion("updateDate in", values, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotIn(List<Date> values) {
            addCriterion("updateDate not in", values, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateBetween(Date value1, Date value2) {
            addCriterion("updateDate between", value1, value2, "updateDate");
            return (Criteria) this;
        }

        public Criteria andUpdateDateNotBetween(Date value1, Date value2) {
            addCriterion("updateDate not between", value1, value2, "updateDate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}